import request from '@/utils/request'
// 早会添加
export function meetingAdd(data) {
  return request({
    type: 1,
    url: '/meeting/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 早会修改
export function meetingUpdate(data) {
  return request({
    type: 1,
    url: '/meeting/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 早会删除
export function meetingDelete(data) {
  return request({
    type: 1,
    url: '/meeting/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}
// 早会查询
export function queryAllItems(data) {
  return request({
    type: 1,
    url: '/meeting/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 简报添加
export function briefAdd(data) {
  return request({
    type: 1,
    url: '/brief_info/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 简报查询
export function briefAllItems(data) {
  return request({
    type: 1,
    url: '/brief_info/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 简报查询日期
export function judgeAllItems(data) {
  return request({
    type: 1,
    url: '/brief_info/judge/meeting',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 简报删除
export function briefDelete(data) {
  return request({
    type: 1,
    url: '/brief_info/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}
// 简报修改
export function briefUpdate(data) {
  return request({
    type: 1,
    url: '/brief_info/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 排产添加
export function scheduleAdd(data) {
  return request({
    type: 1,
    url: '/schedule/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 排产查询
export function scheduleAllItems(data) {
  return request({
    type: 1,
    url: '/schedule/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 排产查询
export function scheduleReport(data) {
  return request({
    type: 1,
    url: '/schedule/scheduleReport',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 排产修改
export function updateSchedule(data) {
  return request({
    type: 1,
    url: '/schedule/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 排产删除
export function deleteSchedule(data) {
  return request({
    type: 1,
    url: '/schedule/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}
// 产能添加
export function capacityAdd(data) {
  return request({
    type: 1,
    url: '/capacity/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 产能查询
export function capacityAllItems(data) {
  return request({
    type: 1,
    url: '/capacity/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 产能单个查询
export function capacitysSelect(data) {
  return request({
    type: 1,
    url: '/capacity/selectByParentKey',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// 产能修改
export function capacitysUpdate(data) {
  return request({
    type: 1,
    url: '/capacity/update',
    method: 'post',
    timeout: 10000,
    data
  })
}

// 产能删除
export function capacitysDelete(data) {
  return request({
    type: 1,
    url: '/capacity/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// 碎片率添加
export function shardsAdd(data) {
  return request({
    type: 1,
    url: '/shards/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 碎片率查询
export function shardsAllItems(data) {
  return request({
    type: 1,
    url: '/shards/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 碎片率统计添加
export function shardsRelateAdd(data) {
  return request({
    type: 1,
    url: '/shards_relate/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 碎片率统计查询
export function shardsRelateAllItems(data) {
  return request({
    type: 1,
    url: '/shards_relate/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 碎片率修改
export function shardsUpdate(data) {
  return request({
    type: 1,
    url: '/shards/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 碎片删除
export function shardsDelete(data) {
  return request({
    type: 1,
    url: '/shards/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// 串返率添加
export function chuanAdd(data) {
  return request({
    type: 1,
    url: '/chuan_return/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 串返率查询
export function chuanAllItems(data) {
  return request({
    type: 1,
    url: '/chuan_return/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}

// 串返率修改
export function chuanUpdate(data) {
  return request({
    type: 1,
    url: '/chuan_return/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 串返率删除
export function chuanDelete(data) {
  return request({
    type: 1,
    url: '/chuan_return/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}
// 叠返率添加
export function dieAdd(data) {
  return request({
    type: 1,
    url: '/die_return/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 叠返率查询
export function dieAllItems(data) {
  return request({
    type: 1,
    url: '/die_return/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 叠返率修改
export function dieUpdate(data) {
  return request({
    type: 1,
    url: '/die_return/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 叠返率删除
export function dieDelete(data) {
  return request({
    type: 1,
    url: '/die_return/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// 良率添加
export function goodAdd(data) {
  return request({
    type: 1,
    url: '/good_data/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 良率查询
export function goodAllItems(data) {
  return request({
    type: 1,
    url: '/good_data/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}

// 良率查询
export function goodDataReport(data) {
  return request({
    type: 1,
    url: '/good_data/goodDataReport',
    method: 'post',
    timeout: 10000,
    data
  })
}

// 良率修改
export function goodUpdate(data) {
  return request({
    type: 1,
    url: '/good_data/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 良率删除
export function goodDelete(data) {
  return request({
    type: 1,
    url: '/good_data/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// 稼动率添加
export function motionAdd(data) {
  return request({
    type: 1,
    url: '/motion/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 稼动率查询
export function motionAllItems(data) {
  return request({
    type: 1,
    url: '/motion/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 稼动率修改
export function motionUpdate(data) {
  return request({
    type: 1,
    url: '/motion/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 稼动率删除
export function motionDelete(data) {
  return request({
    type: 1,
    url: '/motion/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// BOM添加
export function bomAdd(data) {
  return request({
    type: 1,
    url: '/bom/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// BOM查询
export function bomAllItems(data) {
  return request({
    type: 1,
    url: '/bom/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}

// BOM查询物料名称
export function bomMaterials(data) {
  return request({
    type: 1,
    url: '/bom/materials',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// BOM修改
export function bomUpdate(data) {
  return request({
    type: 1,
    url: '/bom/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// BOM删除
export function bomDelete(data) {
  return request({
    type: 1,
    url: '/bom/delete',
    method: 'get',
    timeout: 10000,
    params: data
  })
}

// 成本统计添加
export function costsAdd(data) {
  return request({
    type: 1,
    url: '/costs/add',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 成本统计查询
export function costsAllItems(data) {
  return request({
    type: 1,
    url: '/costs/queryAllItems',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 成本统计查询
export function costsReport(data) {
  return request({
    type: 1,
    url: '/costs/costsReport',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 成本统计修改
export function costsUpdate(data) {
  return request({
    type: 1,
    url: '/costs/update',
    method: 'post',
    timeout: 10000,
    data
  })
}
// 成本统计删除
export function costsDelete(data) {
  return request({
    type: 1,
    url: '/costs/delete',
    method: 'get',
    params: data,
    timeout: 10000
  })
}

